﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes {
    import Engine.Interfaces.*;
    import Init.*;

    public class QuestComponent implements IEngineComponent {

        private var m_options:QuestComponentOptions;

        public function QuestComponent(_arg1:QuestComponentOptions=null){
            if (_arg1 == null){
                _arg1 = new QuestComponentOptions();
            };
            this.m_options = _arg1;
        }
        public function initialize():void{
            var _local1 = (Config.BASE_PATH + "questSettings.xml");
            if (GlobalEngine.getFlashVar("quest_url")){
                _local1 = (GlobalEngine.getFlashVar("quest_url") as String);
            };
            GlobalEngine.initializationManager.add(new QuestSettingsInit(_local1, this.m_options.questClass, this.m_options.questUtility));
            GlobalEngine.initializationManager.add(new QuestInit());
        }

    }
}//package Classes 
